package com.pro.service;

import com.pro.entity.Authority;
import com.pro.entity.UserAuthority;

import java.util.List;

/**
 * @ClassName: UserAuthorityService
 * @Author: 笑笑
 * @DATE: 2021/11/11
 * @TIME: 下午 07:34
 */
public interface UserAuthorityService {
    //查询所有权限信息
    List<Authority> getAllAuthority();

    //根据用户id查询权限信息
    List<Authority> getByUserId(Integer id) throws Exception;

    //添加用户权限信息
    Boolean addUserAuthority(UserAuthority userAuthority);

    //删除用户权限信息
    Boolean DeleteUserAuthority(UserAuthority userAuthority) throws Exception;
}
